package com.igeek.config.ch02.log;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MainTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac=new AnnotationConfigApplicationContext(MyConfig.class);
        ICount count = ac.getBean(ICount.class);
        System.out.println(count.getClass().getName());

        int result1 = count.add(10,20);
        System.out.println("result1="+result1);

        int result2 = count.div(40,1);
        System.out.println("result2="+result2);
    }
}
